package link_list;

/**
 * @author swing
 * @description  对单向链表的反转的测试
 * @create 2022 - 11 - 19 17:48
 */
public class LinkedListTest {
    public static void main(String[] args) throws Exception {
        LinkedList_singe<Integer> list = new LinkedList_singe<>();
        list.insert(1);
        list.insert(2);
        list.insert(3);
        list.insert(4);
        for (Integer i : list) {
            System.out.print(i+" ");
        }
        System.out.println();
        System.out.println("--------------------");
        list.reverse();
        for (Integer i : list) {
            System.out.print(i+" ");
        }
    }
}
